package com.gxpt.app;

/**
 * Created by dufeng on 2017-2-13.
 */

public class Constant {


    //微信
    public static final String APP_ID      = "wxc7df0c21d27816fe";
    public static final String APP_package = "Sign=WXPay";


    public static final long  SPLASH_TIME = 4000;//闪屏5秒

    public static final String SP_Name                    = "sp_gxpt";

    //目录
    public static final String PRO_DIR                  = "gxpt";

    public static final String XML_isFirst              = "XML_isFirst"; //根据版本号判断是否第一次打开软件
    public static final String XML_nickname             = "XML_nickname"; //用户姓名
    public static final String XML_realname             = "XML_realname"; //用户姓名
    public static final String XML_userID               = "xml_userID"; //用户服务器ID
    public static final String XML_token                = "XML_token"; //用户类型
    public static final String XML_card_photos          = "XML_card_photos"; //身份证正面
    public static final String XML_card_fphotos         = "XML_card_fphotos"; //身份证反面
    public static final String XML_sex                  = "XML_sex"; //性别 1 男
    public static final String XML_level                = "XML_level"; //性别 1 男mem_headportrai
    public static final String XML_headport             = "XML_headport"; //用户头像
    public static final String XML_tel                  = "XML_tel"; //用户头像

    public static final String XML_area_main            = "XML_area_main"; //地区主ID
    public static final String XML_area_sub             = "XML_area_sub"; //地区辅ID

    public static final String XML_area_main_name       = "XML_area_main_name"; //地区主名称
    public static final String XML_area_sub_name        = "XML_area_sub_name"; //地区辅名称
    //HEAD
    public static final String device_type = "1"; //1 android       0是ios
    public static final String device_ID   = "99999android201704231312a0b9c8n6m3j5g2f5c6"; //1 android       0是ios
    public static final String typeID      = "10";


    //FORM
    public static final int F_MYSELF       = 8001;//来源是个人中心 我发布的需求

    public static final int F_MYTAKE       = 8002;//来源是个人中心 我承接的需求

    //URL
    public static final String IP = "http://shop.zxbwlkj.com/";
    public static final String URL_login        = IP+"wap.php?r=index/login";//登录
//  public static final String URL_checkyzm     = IP+"wap.php?r=index/checkyzm";//验证码
    public static final String URL_sendyzm      = IP+"wap.php?r=index/sendyzm";//获取验证码
    public static final String URL_register     = IP+"wap.php?r=index/register";//注册
    public static final String URL_forgetpwd    = IP+"wap.php?r=index/forgetpwd";//忘记密码
    public static final String URL_editpwd      = IP+"wap.php?r=index/editpwd";//修改密码
    public static final String URL_iconlist     = IP+"wap.php?r=index/iconlist";//图标获取
    public static final String URL_getregion    = IP+"wap.php?r=index/getregion";//地区分类
    public static final String URL_newlist      = IP+"wap.php?r=index/newlist";//最新发布列表
    public static final String URL_fnewlist     = IP+"wap.php?r=index/fnewlist";//服务商最新列表
    public static final String URL_mypub        = IP+"wap.php?r=index/mypub";//我发布的需求列表
    public static final String URL_getindus     = IP+"wap.php?r=index/getindus";//行业分类
    public static final String URL_pubdemand    = IP+"wap.php?r=index/pubdemand";//添加需求
    public static final String URL_confirmdemand= IP+"wap.php?r=index/confirmdemand";//需求信息确认
    public static final String URL_closedemand  = IP+"wap.php?r=index/closedemand";//关闭需求
    public static final String URL_myinfo       = IP+"wap.php?r=index/myinfo";//服务商资料详情
    public static final String URL_editinfo     = IP+"wap.php?r=index/editinfo";//服务商资料详情
    public static final String URL_assesslist   = IP+"wap.php?r=index/assesslist";//服务商评价列表
    public static final String URL_signcontact  = IP+"wap.php?r=index/signcontact";//签合同
    public static final String URL_showcontact  = IP+"wap.php?r=index/showcontact";//网签合同
    public static final String URL_partbid      = IP+"wap.php?r=index/partbid";//服务商报价
    public static final String URL_servicelist  = IP+"wap.php?r=index/servicelist";//已投标服务商列表
    public static final String URL_grauthen     = IP+"wap.php?r=index/grauthen";//个人认证
    public static final String URL_qyauthen     = IP+"wap.php?r=index/qyauthen";//企业认证
    public static final String URL_jiahomepage  = IP+"wap.php?r=index/jiahomepage";//甲方主页
    public static final String URL_confirmorder = IP+"wap.php?r=index/confirmorder";//一口价订单确认
    public static final String URL_searchlist   = IP+"wap.php?r=index/searchlist";//生活信息搜索
    public static final String URL_catelist     = IP+"wap.php?r=index/catelist";//首页点击图标搜索页面
    public static final String URL_mytake       = IP+"wap.php?r=index/mytake";//我承接的需求
    public static final String URL_prolist      = IP+"wap.php?r=index/prolist";//项目中心
    public static final String URL_createtime   = IP+"wap.php?r=index/createtime";//创建工期
    //商城
    public static final String URL_getcarousel  = IP+"wap.php?r=index/getcarousel";//商城轮播图
    public static final String URL_hotgoods     = IP+"wap.php?r=index/hotgoods";//首页推荐商品
    public static final String URL_getallcategory  = IP+"wap.php?r=index/getallcategory";//分类列表
    public static final String URL_recommendgoods  = IP+"wap.php?r=index/recommendgoods";//分类推荐商品
    public static final String URL_getgoodslist    = IP+"wap.php?r=index/getgoodslist";//分类商品列表
    public static final String URL_getaddress      = IP+"wap.php?r=index/getaddress";//收货地址
    public static final String URL_addressdetail   = IP+"wap.php?r=index/addressdetail";//地址详情
    public static final String URL_getprovince     = IP+"wap.php?r=index/getprovince";//获取省信息
    public static final String URL_getcity         = IP+"wap.php?r=index/getcity";//获取市信息
    public static final String URL_storeaddress    = IP+"wap.php?r=index/storeaddress";//增加地址
    public static final String URL_deladdress      = IP+"wap.php?r=index/deladdress";//删除地址
    public static final String URL_setdefault      = IP+"wap.php?r=index/setdefault";//默认地址
    public static final String URL_bid             = IP+"wap.php?r=index/bid";//发布方选择服务方
    public static final String URL_demanddetail    = IP+"wap.php?r=index/demanddetail";//需求详情
    public static final String URL_isstore         = IP+"wap.php?r=index/isstore";//是否收藏
    public static final String URL_addstore        = IP+"wap.php?r=index/addstore";//收藏
    public static final String URL_mystore         = IP+"wap.php?r=index/mystore";//收藏列表
    public static final String URL_getcouponlist   = IP+"wap.php?r=index/getcouponlist";//我的优惠券列表
    public static final String URL_goodsdetail     = IP+"wap.php?r=index/goodsdetail";//商品详情
    public static final String URL_addtocart       = IP+"wap.php?r=index/addtocart";//添加购物车
    public static final String URL_getcartinfo     = IP+"wap.php?r=index/getcartinfo";//购物车信息
    public static final String URL_updatecart      = IP+"wap.php?r=index/updatecart";//添加购物车
    public static final String URL_confirmcart     = IP+"wap.php?r=index/confirmcart";//确认购物车信息接口
    public static final String URL_createorder     = IP+"wap.php?r=index/createorder";//创建订单
    public static final String URL_orderlist       = IP+"wap.php?r=index/orderlist";//订单列表
    public static final String URL_orderdetail     = IP+"wap.php?r=index/orderdetail";//订单详情
    public static final String URL_cancelorder     = IP+"wap.php?r=index/cancelorder";//取消订单
    public static final String URL_delorder        = IP+"wap.php?r=index/delorder";//删除订单

    public static final String URL_alipay          = IP+"wap.php?r=index/alipay";//支付宝支付
    public static final String URL_wechatpay       = IP+"wap.php?r=index/wechatpay";//微信支付
    public static final String URL_wechatquery     = IP+"wap.php?r=index/wechatquery";//微信支付状态查询

    public static final String URL_evaluate        = IP + "wap.php?r=index/evaluate";//商品评价接口
    public static final String URL_apply           = IP + "wap.php?r=index/apply";//申请售后

    public static final String URL_applylist       = IP + "wap.php?r=index/applylist";//售后列表
    public static final String URL_applydetail     = IP + "wap.php?r=index/applydetail";//售后详情
    public static final String URL_applydelivey    = IP + "wap.php?r=index/applydelivey";//售后回填快递单号

    public static final String URL_ykjtgorder      = IP + "wap.php?r=index/ykjtgorder";//一口价托管金额
    public static final String URL_complete        = IP + "wap.php?r=index/complete";//项目完成
    public static final String URL_jiaconfirmpay   = IP + "wap.php?r=index/jiaconfirmpay";//甲方点击确认支付
    public static final String URL_assess          = IP + "wap.php?r=index/assess";//服务商评价
    public static final String URL_tuoguanorder    = IP + "wap.php?r=index/tuoguanorder";//托管资金（网签合同后）


    public static final String URL_list            = IP + "wap.php?r=index/list";//广告位

    public static final String URL_upload_file     = IP + "wap.php?r=upload/uploadfile";//上传图片
    public static final String URL_H5_goods_detail = IP + "backend.php?r=webview/detail&id=";


    //Action
    public static final int ACTION_indus_sel          = 30001;
    public static final int ACTION_city_sel           = 30002;
    public static final int ACTION_refresh_store      = 30003;//更新了收藏

    public static final int ACTION_indus_str_sel      = 30004;//
    public static final int ACTION_city_str_sel       = 30005;//

    public static final int ACTION_hetong_siged       = 30008;//合同已经签署

    public static final int ACTION_refresh_center     = 30009;//个人中心更新

    public static final int ACTION_REFREASH_myneedlist       = 30006;//重新刷新需求列表
    public static final int ACTION_FRAGMENT_TO_HOME          = 30007;//回首页

    public static final int ACTION_indus_sel_all      = 30010;

    public static final int ACTION_to_search          = 30011;

    public static final int ACTION_to_gq              = 30012;//添加 修改工期

    public static final int ACTION_to_gq_submit       = 30013;//提交工期

    public static final int ACTION_to_shopping_add    = 30021;//购物车+
    public static final int ACTION_to_shopping_reduce = 30022;//购物车-
    public static final int ACTION_to_shopping_allCheck       = 30014;//购物车全选按钮操作



    public static final int ACTION_address_sel        = 30023;//

    public static final int ACTION_invoice_info        = 30024;//
    public static final int ACTION_invoice_info2       = 30025;//

    public static final int ACTION_order_cancel_or_delete        = 30026;//

    public static final int ACTION_order_cancel        = 30027;//
    public static final int ACTION_order_delete        = 30028;//

    public static final int ACTION_pay_success         = 30029;//
    public static final int ACTION_order_info          = 30030;//

    public static final int ACTION_sel_bid             = 30031;//
    public static final int ACTION_assess              = 30032;//
    public static final int ACTION_bid_success         = 30033;//投标成功

    public static final int ACTION_to_shopping_refresh = 30034;//购物车刷新

    public static final int ACTION_carinfo_add         = 30035;//购物车加
    public static final int ACTION_carinfo_sub         = 30036;//购物车减

    public static final String ACTION_TO_REFREASH             = "to_refreash";//去刷新
    public static final String ACTION_TO_DEL                  = "to_del";//去删除
    public static final String ACTION_TO_EDIT                 = "to_edit";//去编辑
    public static final String ACTION_TO_DEFAULT              = "to_default";//去默认
    public static final String ACTION_TO_CHANGECITY           = "to_changeCity";//改变城市_home用
    public static final String ACTION_TO_CHANGEINDUS          = "to_changeINDUS";//改变行业_home用


    public static final String UPLOAD_PIC_TEMP_NAME    ="temp.png";
    public static final String UPLOAD_PIC_CROP_NAME    ="croped.png";

    public static final int REQUEST_TAKE_CAMERA_PERMISSION    = 7001;
    public static final int REQUEST_TAKE_STORAGE_PERMISSION   = 7002;
    /****
     * private void ShareWeb(String thumb_img){
     UMImage thumb = new UMImage($(Activity),thumb_img);
     UMWeb web = new UMWeb("http://www.jikew.cn/wap.php?r=advice/detail/id/105");
     web.setThumb(thumb);
     web.setDescription("描述");
     web.setTitle("极科会");
     new ShareAction($(Activity)).withMedia(web).setPlatform($(SHARE_MEDIA)).setCallback($(UMShareListener)).share();
     }
     *
     *
     *
     *
     *UMShareAPI.get(this).getPlatformInfo(this, share_media, authListener);
     @Override
     protected void onActivityResult(int requestCode, int resultCode, Intent data) {
     super.onActivityResult(requestCode, resultCode, data);
     UMShareAPI.get(this).onActivityResult(requestCode,resultCode,data);
     }
     *
     * **/

}
